class Student{
    public String name;
    public int age;
    private double score;


    public Student(String name,int age,double score){
        this.name = name;
        this.age = age;
        this.score = score;
        System.out.println("调用带有三个参数的构造方法!");
    }


    {
        System.out.println("实例代码块优先于构造代码块执行,一般用来初始化上面的name,age");
    }
    public static String classes;//给下面的classes一个定义
    static{
          classes = "计科2002";
        System.out.println("静态代码块，一般用来初始化静态的数据成员");
    }
}



    public class TestDemo{
        public static void main(String[] args){
            Student student1 = new Student("bit",18,34.6);
        }

    }
